

from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import Unicode


from sqlalchemy import ForeignKey

from sqlalchemy.exc import IntegrityError
from sqlalchemy.ext.declarative import declarative_base

from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker

from zope.sqlalchemy import ZopeTransactionExtension

from sqlalchemy import Text


from scp.modelo.models import Base

__all__ = [ 'ValoresCadena' ]





class ValoresCadena(Base):
	""" Clase que se mapea a la tabla en donde se almacenan valores de atributos del tipo fecha. """
	__tablename__ = 'valores_cadena'
	id = Column(Integer, primary_key=True)
	nombreAtributo = Column(Unicode(50))
	valor = Column(Unicode(500))
	item_id = Column(Integer, ForeignKey('item.id'))
	version_item = Column(Integer)
